﻿@using System.Data
@model ZoomLa.SQLDAL.SQL.PageSetting
@{ 
    Model.cols = 5;
    Model.url = "QueryUser_Data?"+ViewBag.where;
}
<div id="EGV">
    <table class="table table-striped table-bordered table-hover">
        @if (Model.itemCount > 0)
        {
            <tr><th>头像</th><th>用户名</th><th>昵称</th><th>性别</th><th>操作</th></tr>
            foreach (DataRow dr in Model.dt.Rows)
            {
                <tr>
                    <td><img src="@dr["salt"]" onerror="shownoface(this);" class="img50" /></td>
                    <td>@dr["UserName"]</td>
                    <td>@dr["HoneyName"]</td>
                    <td>@(dr["UserSex"].ToString().Equals("0") ? "女" :"男")</td>
                    <td>
                        <a href="javascript:;" class="option_style" onclick="addFriend(this,@dr["UserID"]);"title="发送申请"><i class="fa fa-user-plus"></i>发送申请</a>
                        <a href="/User/Message/MessageSend?ToID=@dr["UserID"]" class="option_style" title="发送消息"><i class="fa fa-envelope"> 发送信息</i></a>
                    </td>
                </tr>
            }
        }
        else
        {
            <tr><td colspan="5">未搜索到符合条件的用户</td></tr>
        }
    </table>
</div>